<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// This tests for a bug when replacing the contents of a floating element. Just
// its contents should be removed during the replace.
const kStyle = 'float:left; border: 1px solid blue;';
selection_test(
  '<div contenteditable>abc<div style="${kStyle}">^def|</div></div>',
  'insertHTML XYZ',
  '<div contenteditable>abc<div style="${kStyle}">XYZ|</div></div>',
  'Replace HTML in float:left');
</script>
